#include "widget.h"
#include "ui_widget.h"
#include <QDir>
#include <QIcon>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QString path = QDir::currentPath();
    ui->label->setText(path);

    this->setWindowTitle("打印一个执行文件所在目录");

    QIcon icon = QPixmap(":/sky.png");
    this->setWindowIcon(icon);
}

Widget::~Widget()
{
    delete ui;
}

